import request from "../utils/request";
/**
 * 获取企业分页列表
 * @param params
 * @returns {AxiosPromise}
 */
export function Getenterprise(params) {
  return request({
    url: "/tyc/enterprise",
    method: "get",
    params: params,
  });
}
/**
 * 获取企业详情
 * @param params
 * @returns {AxiosPromise}
 */
export function EetTycEnterpriseInfo(params) {
  return request({
    url: "/tyc/enterprise/getTycEnterpriseInfo",
    method: "get",
    params: params,
  });
}
/**
 * 查询企业工商股东信息
 * @param params
 * @returns {AxiosPromise}
 */
export function GetEnterprisePartners(params) {
  return request({
    url: "/tyc/enterprise/getEnterprisePartners",
    method: "get",
    params: params,
  });
}
/**
 * 查询企业变更信息
 * @param params
 * @returns {AxiosPromise}
 */
export function getEnterpriseChange(params) {
  return request({
    url: "/tyc/enterprise/getEnterpriseChange",
    method: "get",
    params: params,
  });
}


//新增企业概况配置
export function addEnterprise(data) {
  return request({
    url: "/situation",
    method: "post",
    data: data,
  });
}

// 获取企业概况配置列表
export function getEnterpriseList(params) {
  return request({
    url: "/situation/page",
    method: "get",
    params: params,
  });
}

// 获取企业概况配置详情
export function getEnterpriseDetail(id) {
  return request({
    url: "/situation/" + id,
    method: "get",
  });
}

// 修改企业概况配置
export function editEnterprise(data) {
  return request({
    url: "/situation",
    method: "put",
    data: data,
  });
}

// 删除企业概况配置
export function deleteEnterprise(ids) {
  return request({
    url: "/situation/" + ids,
    method: "delete",
  });
}
